exports.data = {
  json: {
    kind: "Snippet",
    body: [
      '"van-goods-action-button": "@vant/weapp/goods-action-button/index"',
    ],
    detail: "GoodsAction 商品导航 GoodsActionButton",
    documentation: `在app.json或index.json中引入组件`,
  },
  wxml: {
    kind: "Snippet",
    body: ['<van-goods-action-button text="加入购物车" type="warning"${1}/>'],
    detail: "GoodsAction 商品导航 GoodsActionButton",
    documentation: `GoodsActionButton`,
    attrs: [
      {
        kind: "Field",
        body: ["text="],
        detail: "text",
        documentation: "按钮文字",
        vals: null,
      },
      {
        kind: "Field",
        body: ["color="],
        detail: "color",
        documentation: "按钮颜色，支持传入 linear-gradient 渐变色",
        vals: null,
      },
      {
        kind: "Field",
        body: ["url="],
        detail: "url",
        documentation: "点击后跳转的链接地址",
        vals: null,
      },
      {
        kind: "Field",
        body: ["link-type="],
        detail: "link-type",
        documentation:
          "链接跳转类型，可选值为navigateTo redirectTo switchTab reLaunch",
        vals: {
          kind: "Value",
          body: ["navigateTo", "redirectTo", "switchTab", "reLaunch"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["id="],
        detail: "id",
        documentation: "标识符",
        vals: null,
      },
      {
        kind: "Field",
        body: ["type="],
        detail: "type",
        documentation: "按钮类型，可选值为 primary info warning danger",
        vals: {
          kind: "Value",
          body: ["primary", "info", "warning", "danger", "default"],
          detail: "",
          documentation: ``,
        },
      },
      {
        kind: "Field",
        body: ["plain="],
        detail: "plain",
        documentation: "是否为朴素按钮",
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["size="],
        detail: "size",
        documentation: `按钮尺寸，可选值为 normal large small mini`,
        vals: {
          kind: "Value",
          body: ["normal", "large", "small", "mini"],
          detail: "",
          documentation: ``,
        },
      },
      {
        kind: "Field",
        body: ["disabled="],
        detail: "disabled",
        documentation: `是否禁用按钮`,
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: ``,
        },
      },
      {
        kind: "Field",
        body: ["loading="],
        detail: "loading",
        documentation: `是否显示为加载状态`,
        vals: {
          kind: "Value",
          body: ["{{isLoading}}", "true", "false"],
          detail: "",
          documentation: ``,
        },
      },
      {
        kind: "Field",
        body: ["open-type="],
        detail: "open-type",
        documentation: `微信开放能力`,
        vals: {
          kind: "Value",
          body: [
            "contact",
            "share",
            "getPhoneNumber",
            "getUserInfo",
            "launchApp",
            "openSetting",
            "feedback",
          ],
          detail: "",
          documentation: ``,
        },
      },
      {
        kind: "Field",
        body: ["app-parameter="],
        detail: "app-parameter",
        documentation: `打开 APP 时，向 APP 传递的参数`,
        vals: null,
      },
      {
        kind: "Field",
        body: ["lang="],
        detail: "lang",
        documentation: `指定返回用户信息的语言，zh_CN 简体中文， zh_TW 繁体中文，en 英文`,
        vals: {
          kind: "Value",
          body: ["en", "zh_CN", "zh_TW"],
          detail: "",
          documentation: ``,
        },
      },
      {
        kind: "Field",
        body: ["session-from="],
        detail: "session-from",
        documentation: `会话来源`,
        vals: null,
      },
      {
        kind: "Field",
        body: ["send-message-title="],
        detail: "send-message-title",
        documentation: `会话内消息卡片标题`,
        vals: null,
      },
      {
        kind: "Field",
        body: ["send-message-path="],
        detail: "send-message-path",
        documentation: `会话内消息卡片点击跳转小程序路径`,
        vals: null,
      },
      {
        kind: "Field",
        body: ["send-message-img="],
        detail: "send-message-img",
        documentation: `sendMessageImg`,
        vals: null,
      },
      {
        kind: "Field",
        body: ["show-message-card="],
        detail: "show-message-card",
        documentation: `显示会话内消息卡片`,
        vals: null,
      },
      {
        kind: "Event",
        body: ["bind:click="],
        detail: "bind:click",
        documentation: "按钮点击事件回调",
        vals: null,
      },
      {
        kind: "Field",
        body: ["custom-class="],
        detail: "custom-class",
        documentation: "根节点样式类",
        vals: null,
      },
    ],
  },
};
